<include file="Public:pagerForm" />

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>账单id：</label>
				<input type="text" name="payment_id" value="<?php echo $_REQUEST['payment_id']?>" />
			</li>
			<li>
				<label>订单id：</label>
				<input type="text" name="order_id" value="<?php echo $_REQUEST['order_id']?>" />
			</li>
			<li>
				<label>支付状态：</label>
				<select name="payment_status">
					<option value="">未选择</option>
					<?php foreach(C('PAYMENT_STATUS_NAME') as $k=>$v){ ?>
						<option value="{$k}" <?php if($_REQUEST['payment_status']==="".$k) echo "selected"?>>{$v}</option>
					<?php }?>
				</select>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="edit" href="__URL__/edit/id/{id}" target="dialog" width="800" height="480" mask="true" warn="请选择数据"><span>查看</span></a></li>
			
			<li class="line">line</li>
		</ul>
	</div>

	<table class="table" width="100%" layoutH="138">
		<thead>
		<tr>
			<th width="100">账单编号</th>
			<th width="100">订单编号</th>
			<th width="100" >商品金额</th>
			<th width="100" >快递费</th>
			<th width="100" >账单应付总金额</th>
			<th width="100" >账单实付总金额</th>
			<th width="100" >账单支付状态</th>
			<th width="100" >第三方支付流水号</th>
			<th width="100" >支付成功时间</th>
		</tr>
		</thead>
		<tbody>
		<volist id="vo" name="list">
			<tr target="id" rel="{$vo['payment_id']}">
				<td>{$vo['payment_id']}</td>
				<td>{$vo['order_id']}</td>
				<td>{$vo['commoditys_payment']}</td>
				<td>{$vo['shipping_payment']}</td>
				<td>{$vo['should_payment']}</td>
				<td>{$vo['real_payment']}</td>
				<td><?php echo C('PAYMENT_STATUS_NAME.'.$vo['payment_status']);?></td>
				<td>{$vo['payment_doc_id']}</td>
				<td>{$vo['success_pay_time']}</td>
			</tr>
		</volist>
		</tbody>
	</table>

	<div class="panelBar">
		<div class="pages">
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>

</div>


